package com.xzmzhp.dao.finance;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xzmzhp.dao.finance.SQL.FinanceImgSql;
import com.xzmzhp.pojo.finance.FinanceImg;
import org.apache.ibatis.annotations.InsertProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: 王源(xm)
 * @create: 2022-03-25 14:01
 * @program: ams
 * @description: 财务图片数据库交互类
 */
@Repository
public interface FinanceImgMapper extends BaseMapper<FinanceImg> {

    /**
     * 批量添加财务图片
     * @param financeImgs 财务图片数据
     * @return 是否成功
     */
    @InsertProvider(type = FinanceImgSql.class,method = "addFinanceImgs")
    Integer addFinanceImgs(List<FinanceImg> financeImgs);
}
